package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Seller;
import org.darkforest.model.SellerLogSearchBean;
import org.darkforest.vo.StoreSellerVo;

import java.util.List;
import java.util.Map;

@DBMapper
public interface SellerMapper {
    int deleteByPrimaryKey(Integer sellerId);

    int insert(Seller record);

    int insertSelective(Seller record);

    Seller selectByPrimaryKey(Integer sellerId);

    Seller selectBySellerName(String sellerName);

    List selectAllSeller();

    int updateByPrimaryKeySelective(Seller record);

    int updateByPrimaryKey(Seller record);

    int updateByStoreId(Seller record);

    StoreSellerVo sellerLogin(StoreSellerVo sellerVo);

    int updateLastLoginTime(Integer sellerId);

    List<Seller> findSellerByCondition(Seller record);

    List<Seller> getSellerList();

    int deleteByStoreId(Integer storeId);

    List<Seller> findSellerExceptSelf(Map<String, Object> map);
}